<include file="Public/header" />
<title>管理员列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 财务管理 <span class="c-gray en">&gt;</span> 采购单 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">

	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
		<form class="formleft" name="" id="" action="__URL__/list_list/" method="get">
			<input class="input-text" style="width:200px" type="text" value="<{$_GET['order_no']}>" placeholder="单号" name="order_no">
			日期范围:
			<input type="input-text" name="start_time" onfocus="WdatePicker({el:$dp.$('d12')})" id="start_time" class="input-text Wdate" style="width:120px;"  placeholder="开始时间"> -
			<input type="input-text" name="over_time" onfocus="WdatePicker({el:$dp.$('d12')})" id="over_time" class="input-text Wdate" style="width:120px;"   placeholder="结束时间">
			<button type="submit" class="btn btn-success"><i class="icon-plus"></i> 查询</button>
		</form>
		<span class="r">共有数据：<strong><{$count}></strong> 条</span> 
    </div>
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="15">采购单列表
					<label style="float:right;">显示 
					<select tabindex="15" name="page_count" aria-controls="DataTables_Table_0" class="page_count" style="width:80px;">
					<if condition="I('listrows') neq ''">
					<option value="<{:I('listrows')}>"><{:I('listrows')}></option>
					</if>
					<option value="15">15</option>
					<option value="25">25</option>
					<option value="50">50</option>
					<option value="100">100</option>
					</select> 条</label>
				</th>
			</tr>
			<tr class="text-c">
				<th>序号</th>
				<th width="">单号</th>
				<th width="">来往单位</th>
				<th width="">制单人</th>
				<th width="">采购人</th>
				<th width="">部门</th>
				<th width="">操作人</th>
				<th width="">总价格</th>
				<th width="">添加时间</th>
				<th width="">操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr class="text-c">
				<td><{$i}></td>
				<td><{$vo.order_no}></td>
				<td><{$vo.making}></td>
				<td><{$vo.purchaser}></td>
				<td><{$vo.department}></td>
				<td><{$vo.from_company}></td>
				<td><{$vo.operator}></td>
				<td><{$vo.total_price}></td>
				<td><{$vo.created_at}></td>
				<td>
				<a href="javascript:;" onclick="admin_open('采购单','__MODULE__/List/print_examinedetail/id/<{$vo.id}>','<{$vo.id}>','800','480')" class="">采购单</a>
				</td>
			</tr>
			</volist>
			<tr class="text-c">
				<td>合计</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td><{$total_fee}></td>
				<td></td>
				<td>
				
				</td>
			</tr>			
		</tbody>
	</table>
	<div class="page mt" style="text-align:right"><{$page}></div>
</div>
 <include file="Public/footer" />
<include file="Public/footer_js" />
<script type="text/javascript">
    $(function(){
		$(".page_count").change(function(){
			var order_no=$('input[name=order_no]').val();
			var start_time=$('input[name=start_time]').val();
			var end_time=$('input[name=end_time]').val();
			var url="__MODULE__/Finance/list_list";
			<!-- alert(end_time); -->
			if(order_no!=""){
				url=url+"/order_no/"+order_no;
			}
			if(start_time!="" && start_time!=undefined){
				url=url+"/start_time/"+start_time;
			}
			if(end_time!="" && end_time!=undefined){
				url=url+"/end_time/"+end_time;
			}
			location.href=url+"/listrows/"+$(this).val();
		});
    })
</script>
</body>
</html>